define(["jquery","template",
	"scprit/nutrition/template/nutritionApplication/addNutritionScheme.tpl.js"],function($,template,tpl){
	var ui = {};

	var drawPatients = function(data){
		return template("nutrition_addSchemePatients",data);
	}
	var drawInfo = function(data){
		return template("nutrition_addSchemeInfo",data);
	}
	var drawScheme = function(data){
		return template("nutrition_addSchemeScheme",data);
	}

	ui.patientsInit = function(options){
		$("#" + options.id).html(tpl.patients());
        var html = drawPatients(options);
        $("#" + options.id).html(html);
	}
	ui.infoInit = function(options){
		$("#" + options.id).html(tpl.info());
        var html = drawInfo(options);
        $("#" + options.id).html(html);
	}
	ui.schemeInit = function(options){
		$("#" + options.id).html(tpl.scheme());
        var html = drawScheme(options);
        $("#" + options.id).html(html);
	}

	return ui;
});